package com.example.demo.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 
 * @title:	DefaultPageConfig
 * @author:	许子文
 * @date:	2021年1月29日 
 * @descirption: 默认页面配置
 *
 */
@Configuration
public class DefaultPageConfig implements WebMvcConfigurer{
	@Override
	public void addViewControllers(ViewControllerRegistry registry) {
		
		registry.addViewController("/").setViewName("login.html");
		
		WebMvcConfigurer.super.addViewControllers(registry);
	}
}
